﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CanDoo.Oil.Core.DTOs
{
    public class MediaInfo
    {
        /// <summary>
        /// 媒体id
        /// </summary>
        [Required]
        public long id { get; set; }
        [Required]
        public string name { get; set; }
        [Required]
        public double size { get; set; }
        [Required]
        public object format { get; set; }
        /// <summary>
        /// 播放时长
        /// </summary>
        [Required]
        public string time { get; set; }

        /// <summary>
        /// 资源下载地址
        /// </summary>
        [Required]
        public string mediaUrl { get; set; }
        [Required]
        public string createTime { get; set; }

        public string effectiveTime { get; set; }
        public string endPlayTime { get; set; }
        public string updateTime { get; set; }
        public string failureTime { get; set; }
        public string startPlayTime { get; set; }
        public string md5 { get; set; }
    }
}

